using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace DataStructure
{
    public class HashST1Set<Key> : ISet<Key>
    {
        private HashST1<Key> hashST1;
        public int Count => hashST1.Count;

        public bool IsEmpty => hashST1.IsEmpty;

        public HashST1Set(int M)
        {
            hashST1 = new HashST1<Key>(M);        
        }
        
        public HashST1Set()
        {
            hashST1 = new HashST1<Key>();
        }
        
        public void Add(Key t)
        {
            hashST1.Add(t);
        }

        public bool Contains(Key t)
        {
            return hashST1.Contains(t);
        }

        public void Remove(Key t)
        {
            hashST1.Remove(t);
        }
    }
}